package com.acceptable.qucun.generic.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@Component
@ConfigurationProperties(prefix = "qucun.user")
public class UserItem {
    // 从逻辑删除时算起 至数据库删除时 最长时间
    @Value("max-rest-day")
    private String maxRestDay;

    public Integer getMaxRestDay(){
        return Integer.parseInt(this.maxRestDay);
    }
}
